package com.woniuxy.exam.mapper;
import java.util.Collection;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.woniuxy.commons.entity.QuestionBank;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author zouyang
 * @date 2020/7/27 - 14:45
 */
@Mapper
public interface QuestionBankMapper {

    List<QuestionBank> selectAll();

    List<QuestionBank> selectByPid(@Param("pid")Integer pid);

    int deleteByPrimaryKey(Integer id);

    int insert(QuestionBank record);

    int insertSelective(QuestionBank record);

    QuestionBank selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionBank record);

    int updateByPrimaryKey(QuestionBank record);

    List<QuestionBank> selectAllPidGreaterThan0();

    String getPname(int pid);

    List<QuestionBank> selectByAll(QuestionBank questionBank);

    int deleteByIdIn(@Param("idCollection")Collection<Integer> idCollection);

}